package com.seeTools.next.api.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: seeTools
 * @Date: 2024/5/17  14:33
 * @Version 1.0
 */
@Data
public class StockInUploadExcel implements Serializable {

    private static final long serialVersionUID = 1L;


    @ExcelProperty("商品条码")
    private String barcode;

    @ExcelProperty("商品名称")
    private String name;

    @ExcelProperty("商品规格")
    private String spec;

    @ExcelProperty("计量单位")
    private String unit;

    @ExcelProperty("商品分类")
    private String category;

    @ExcelProperty("进货价")
    private BigDecimal costPrice;

    @ExcelProperty("数量")
    private Integer quantity;

    @ExcelProperty("金额")
    private BigDecimal totalAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("生产日期")
    private Date productionDate;
}
